package org.game;

import java.util.ArrayList;
import java.util.List;

public class GameObject {
	public static enum RENDERTYPE{
		DIFFUSE,
		DIFFUSE_AMBIENT,
	}
	public RENDERTYPE renderType;
	public List<Integer> shaders;
	public boolean useShader = true;
	public float x,y;
	public float dx,dy;
	public float width,height;
	
	public GameObject(){
		shaders = new ArrayList<Integer>();
		this.x = 0f;
		this.y = 0f;
		this.dx = 0f;
		this.dy = 0f;
		this.width = 0f;
		this.height = 0f;
	}
	
	public GameObject(float x,float y){
		this.x = x;
		this.y = y;
		this.dx = 0f;
		this.dy = 0f;
		this.width = 0f;
		this.height = 0f;
	}
	
	public GameObject(float x,float y,float width,float height){
		this.x = x;
		this.y = y;
		this.dx = 0f;
		this.dy = 0f;
		this.width = width;
		this.height = height;
	}
	
	public GameObject(float x, float y,float dx,float dy, float width,float height){
		this.x = x;
		this.y = y;
		this.dx = dx;
		this.dy = dy;
		this.width = width;
		this.height = height;
	}
	
	public String toString(){
		return "RENDERTYPE:"+renderType.toString()+
				";"+x+","+y+";"+dx+","+dy+";";
	}
}
